<!doctype html>
<html>
<head>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
</head>
<body>
<script>
// hasPendingActivity() should keep wrapper and object alive inside a
// Worker also.
async_test(function(t) {
    var worker = new Worker("resources/worker-xhr-onerror.js");
    worker.onmessage = () => { t.done(); };
}, 'hasPendingActivity() should also keep wrapper and object alive inside a worker');
</script>
</body>
</html>
